package com.springboot.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.provider.UserProvider;
import org.apache.ibatis.annotations.Mapper;
import com.springboot.pojo.User;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {
    //    @Select("SELECT * FROM User")
    List<User> getAllUsers();

    List<User> select();

    @SelectProvider(type = UserProvider.class, method = "getUserById")
    List<User> getUserById(User user);
}
